package com.czxy.changgou3.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by liangtong.
 */
@Table(name="tb_sku_photo")
@Data
public class SkuPhoto {
    @Id
    private Integer id;
    @Column(name="sku_id")
    private Integer skuId;

    private String url;
}

/*

CREATE TABLE `tb_sku_photo` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sku_id` int(10) unsigned NOT NULL COMMENT 'SPUID',
  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '原图路径',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

 */